<?php
	ini_set("include_path", ini_get("include_path") . PATH_SEPARATOR . $_SERVER['DOCUMENT_ROOT'] . "/Common");
	include_once('LivingWeb.conf.php');
	include_once('Data/XMLDataset.php');
	
	if(isset($_GET['div_code']))
	{
		if(isset($_GET['link_order']))
		{
			if($_GET['link_order'] != 'New')
			{
				$sql = "SELECT * FROM menu WHERE MinistryID = '" . $_GET['div_code'] . "' AND LinkOrder = '" . $_GET['link_order'] . "'";
				$MyAJAXConnection = new XMLDataset();
				print $MyAJAXConnection->getXMLDataset($sql);
			}
			else
			{
				return; 
			}
		}
		else
		{
			return;
		}
	}
	
?>